package com.cfm880.tut1;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

/**
 * Created by chengfangming on 2017/5/24.
 */
@RabbitListener(queues = "hello")
public class Tut1Receiver {
    @RabbitHandler
    public void receive(String in){
        System.out.println("[x] Received " + in + "");
    }
}
